﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

/// <summary>
/// 清除缓存页面
/// </summary>
public partial class ClearCache : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Common.Log("清除缓存");
            RemoveKeywords();
            RemoveAllSort();
        }
    }

    /// <summary>
    /// 清除关键字缓存
    /// </summary>
    protected void RemoveKeywords()
    {
        new WebCache().Remove("AllKeywords");
    }

    /// <summary>
    /// 清除所有分类
    /// </summary>
    protected void RemoveAllSort()
    {
        new WebCache().Remove("AllSort");
    }
}